﻿var config = {
	// 项目根名称
	projectName : '/actplus',
	// 项目根目录
	serverPath : location.protocol + '//' + location.host,
	staticPath:location.protocol + '//' + location.host+"/actplus/res/web/",
	//访问根目录resource
	resPath:location.protocol + '//' + location.host+"/actplus/resources/web/",
	// web端服务器请求地址
	server : location.protocol + '//' + location.host + "/web/",
	// 静态页面跳转地址
	jumpServer : location.protocol + '//' + location.host + '/',
	isLoadFlexible:true,
	
	//运营维护 20170615 HTTPS处理 ST
	//protocol : location.protocol + '//',
	
	replaceToHttps : function (str) {
		return String(str).replace(new RegExp('http://',"gm"), location.protocol + '//');
	}
	//运营维护 20170615 HTTPS处理 ED
};



// 微信端服务器请求地址
//config.webChat = location.protocol + '//' + location.host + config.projectName + "/webChat/";
config.webChat = location.protocol + '//' + location.host + "/webChat/";
// 后台请求地址
config.admin = location.protocol + '//' + location.host + config.projectName + "/admin/";

//后管请求地址
config.back = location.protocol + '//' + location.host + "/back/";
//接口地址
config.server = location.protocol + '//' + location.host+ '/web/';

if (location.href.indexOf("actplus/") != -1) {
	// 项目根目录
	config.serverPath = location.protocol + '//' + location.host
			+ config.projectName;
	// web端服务器请求地址
	config.server = location.protocol + '//' + location.host
			+ config.projectName + "/web/",
	// 接口地址
	config.server = location.protocol + '//' + location.host
			+ config.projectName + '/web/',
	// 静态页面跳转地址
	config.jumpServer = location.protocol + '//' + location.host
			+ config.projectName + '/';
	config.back = location.protocol + '//' + location.host + config.projectName + "/back/";
	
	config.webChat = location.protocol + '//' + location.host + config.projectName + "/webChat/";
}
// 获取图片验证码
config.setImageCode = config.server + "user/setImageCode.html";
//去到登录界面
config.toLoginChat = config.server + "user/toLoginChat.html";
//注册成功后进入到完善资料界面
config.toWebChatSecInfo = config.server + "user/toWebChatSecInfo.html";
//注册用户信息绑定
config.saveBandPerson = config.server + "user/saveBandPerson";
//登录绑定
config.loginBand = config.server + "user/loginBand";
//完善资料后进入微信首页
config.toWebChatPage = config.server + "user/toWebChatPage.html";
config.index = config.server + "index";

//组织用户认证
config.toAuthentication = config.server + "organization/toAuthentication";


//进入设置粉丝
config.toFanSetting = config.server + "ticketInfo/tofansSelect";
//首页获取频道分类列表
config.findIndexChannelClassification = config.server + "index/findIndexChannelClassification";
//搜索附近活动列表
config.findActivityMap = config.server + "map/toFindNearActWeb";
//搜索附近组织列表
config.findOrganizationMap = config.server + "map/toFindNearOrgWeb";

//===================================福利画面	start===================================
config.toAddTicketCoupon = config.server + "ticketInfo/toAddTicketCoupon";//
config.saveTicket = config.server + "ticketInfo/saveTicket";//保存发布福利信息
config.saveTicketWebView = config.server + "ticketInfo/saveTicketWebView";//保存发布福利预览信息
config.getTicketClassfyTagInfo = config.server+'couponIndex/getTicketClassfyTagInfo';
config.toCouponDetail = config.server+'couponIndex/toCouponDetail?ticketId=';
config.toCouponIndex = config.server+'couponIndex/toCouponIndex';//找福利
config.findCoupon = config.server+'couponIndex/findWebCoupon';//查询福利列表
config.suspensionTicketInfo = config.server+'ticketInfo/suspensionTicketInfo';//福利终止操作
config.deleteCoupon = config.server+'ticketInfo/deleteCoupon';//福利删除操作
config.changeCouponPublishStatus = config.server+'ticketInfo/changeCouponPublishStatus';//福利发布操作
config.toEditTicketCoupon = config.server+'ticketInfo/toEditTicketCoupon?ticketId=';//福利编辑页面
config.updateCouponApplyExamine = config.server+'examine/updateCouponApplyExamine';//审核福利申请
config.selectCouponApplyInfo = config.server+'examine/selectCouponApplyInfo';//审核信息查看
config.getCouponByExChangeNumber = config.server+'couponIndex/getCouponByExChangeNumber';//根据兑换码获得对应票务信息
config.userTicketCouponByApplyId = config.server+'couponIndex/userTicketCouponByApplyId';//标记优惠券已经使用
config.addCouponCollection = config.server+'webCouponCollection/addCouponCollection';//添加收藏
config.removeCouponCollection = config.server+'webCouponCollection/removeCouponCollection';//删除收藏
config.sendChatMain = config.server+'examine/sendChatMain';//审核福利私信
config.inviteOrg = config.server+'ticketCoupon/inviteOrg';//邀请加入
config.perfectApplyCoupon=config.server+'couponApply/perfectApplyCoupon';//收集信息以及修改
config.ticketApplyUserList=config.server+'ticketInfo/toTicketApplyUserList?ticketId=';//福利申请用户列表
config.couponManagerList=config.server + 'couponIndex/couponManagerList';//福利申请管理列表
config.toViewApplyList=config.server+'viewApplyList/toViewApplyList';//查看福利秒杀名单
config.getApplyUserList=config.server+'viewApplyList/getApplyUserList';//查看优惠券申请人员列表


//===================================福利画面	end===================================
//私信
config.addLetterNotice = config.server+'chartMain/addLetterNotice';//审核信息查看
config.webShareInfo = config.server+'webchat/webShareInfo';//微信分享
config.shareCount = config.server+'webchat/shareCount';//分享统计

//===================================频道画面	start===================================
//根据频道分类获取基本信息
config.getChannelInfoByClassfy = config.server+'channelOperation/getChannelInfoByClassfy';
//保存频道
config.saveChannelInfo = config.server+'channelOperation/saveChannelInfo';
//删除频道
config.delChannelInfo = config.server+'channelOperation/delChannelInfo';
//获取频道信息列表
config.getChannelInfoList = config.server+'channelOperation/getChannelInfoList';
//板块维护列表
config.sectionInfoList = config.server+'channel/section/sectionInfoList';
//板块分类
config.sectionCategoryList = config.server+'channel/section/sectionCategoryList';
//新增板块
config.addSection = config.server+'channel/section/addSection';
//编辑板块名称
config.editSection = config.server+'channel/section/editSection';
//删除板块
config.delSection = config.server+'channel/section/delSection';
//上下架板块
config.saveShelves = config.server+'channel/section/saveShelves';
//线上排序
config.sectionSort = config.server+'channel/section/sectionSort';


//频道审核(视频列表)
config.videoExaminePageList = config.server+'channel/examine/videoExaminePageList';
//频道审核(图集列表)
config.pictureExaminePageList = config.server+'channel/examine/pictureExaminePageList';
//频道/图集审核
config.examine = config.server+'channel/examine/examine';
//驳回理由
config.getRejectReason = config.server+'channel/examine/getRejectReason';


//根据频道ID和板块ID获得视频列表
config.loadChannelVideoList = config.server+"channel/channelDetail/findChannelVideoList";
//根据频道ID和板块ID获得图片列表
config.loadChannelPictureList = config.server+"channel/channelDetail/findChannelPictureList";
//根据频道ID和板块ID获得活动列表
config.loadChannelActivityList = config.server+"channel/channelDetail/findChannelActivityList";

//根据频道ID和板块ID跳转到视频列表页面
config.toSectionVideoList = config.server+"channel/sectionContent/toSectionVideoList";
//根据频道ID和板块ID跳转到图片列表页面
config.toSectionPictureList = config.server+"channel/sectionContent/toSectionPictureList";
//根据频道ID和板块ID跳转到活动列表页面
config.toSectionActivityList = config.server+"channel/sectionContent/toSectionActivityList";

//根据频道ID和板块ID获取视频列表
config.sectionVideoList = config.server+"channel/sectionContent/sectionVideoList";
//根据频道ID和板块ID获取图片列表
config.sectionPictureList = config.server+"channel/sectionContent/sectionPictureList";
//根据频道ID和板块ID获取活动列表
config.sectionActivityList = config.server+"channel/sectionContent/sectionActivityList";
//板块根据活动名称获取活动列表
config.secActivityList = config.server+"channel/sectionContent/sectionFindActivityList";

//微信端检查当前用户是否已经签到
config.checkSingUpByUserId	=	config.webChat+"activity/checkSingUpByUserId";
//微信端签到
config.webChatActivitySingUp	=	config.webChat+"activity/activitySingUp";
//根据频道ID和板块ID获得视频列表(微信)
config.webChatLoadChannelVideoList	=	config.webChat+"channel/channelDetail/findChannelVideoList";
//根据频道ID和板块ID获得图片列表(微信)
config.webChatLoadChannelPictureList = 	config.webChat+"channel/channelDetail/findChannelPictureList";
//根据频道ID和板块ID获得活动列表(微信)
config.webChatLoadChannelActivityList = config.webChat+"channel/channelDetail/findChannelActivityList";
//根据图集ID获得所有的图片地址
config.selectChannelDetailByPictureInfoId =	config.webChat+"channel/channelDetail/selectChannelDetailByPictureInfoId";
//根据点赞类型进行点赞
config.webPraiseChannel =	config.webChat+"channel/channelDetail/praiseChannel";

//===================================频道画面	end===================================











/**  活动  **/
config.joinActivityTime=config.server+'activity/joinActivityTime';//提交预览
config.savePreviewActivity=config.server+'activity/savePreviewActivity';//提交预览
config.auditPreviewActivity=config.server+'organization/audit/auditPreviewActivity';//审核预览
config.toAdminPreview=config.webChat+'activity/toAdminPreview';//微信端组织用户预览活动(添加草稿)

config.addActivity = config.server+"activity/add";//添加活动
config.editActivity = config.server+"activity/edit";//编辑活动
config.getActivityFromDb = config.server+"activity/getActivityFromDb";//从数据库获得活动数据
//活动报名审核 详情
config.activityVerifyDetail = config.server+"organization/audit/activityVerifyDetail";
config.activityVerifyList = config.server+"organization/audit/activityVerifyList";
config.activityCollInfo = config.server+"organization/audit/activityCollInfo";
config.applyPass = config.server+"organization/audit/applyPass";
config.enSure = config.server+"organization/audit/enSure";
config.batchRefuse = config.server+"organization/audit/batchRefuse";
config.privateTetter = config.server+"organization/audit/privateTetter";
config.invite = config.server+"organization/audit/invite";
//找活动列表
config.findActivityForActivityList=config.server+"activity/findAct/findActivityForActivityList";
//首页找活动列表
config.findIndexActivityList=config.server+"index/findIndexActivityList";
//某个主办方下所有活动
config.activityList = config.server+"activity/activityList";
//活动点评
config.activityReview = config.server+"activity/activityReview";
//数据库活动详情
config.getPreViewDetail=config.server+"activity/getPreViewDetail";
//获取活动的 参加人数
config.getJoinCount = config.server+"activity/joinActivity";
//15分钟内未完善信息 取消报名资格
config.cancleJoin = config.server+"activity/completeInfoTimeOut";
//活动收藏
config.activityCollect = config.server+"activityCommodityCollection/addCommodityCollection";
//活动点赞添加
config.addActivityZanCollect = config.server+"activityZanCollection/addZanCollection";
//活动点赞取消
config.cancelActivityZanCollect = config.server+"activityZanCollection/cancelZanCollection";

config.completInfo = config.server+"activity/completeInformation";
//获取分类信息
config.getCategoryType=config.server+"index/getCategoryType";
//猜你喜欢
config.guessYourLike=config.server+"activity/findAct/guessYourLike";
//活动审核列表
config.findAuditActivity=	config.server+"/organization/audit/findActivity";
//活动管理-活动取消
config.cancelActivity=config.server+"/organization/audit/cancelActivity";
//活动管理-提交审核
config.publishActivityStatus=config.server+"/organization/audit/publishActivityStatus";
//活动管理-删除活动
config.deleteActivity=config.server+"/organization/audit/deleteActivity";
//活动审核-列表
config.getAuditActivitys=config.server+"/organization/audit/getAuditActivitys";
//活动审核-修改活动名称
config.updateActivityName=config.server+"/organization/audit/updateActivityName";
//活动审核-接口
config.publishActivityStatusAudit=config.server+"/organization/audit/publishActivityStatusAudit";
//活动审核
config.publishActivity=config.server+"/organization/audit/publishActivity";
//活动详情
config.webpreviewActivity= config.server+"/activity/webpreview?activityId=";
//生成二维码
config.generateTicQrcode= config.server+"/activity/findAct/generateTicQrcode?ticketId=";
//活动详情
config.activityDetail= config.server+"activity/detail?activityId=";
//活动人员审核
config.applyAudit = config.server+"/organization/audit/applyAudit";
//活动下架
config.shelves = config.back+"/activity/shelves";


/**  组织  **/
//找组织
config.toFindOrganizationIndex=config.server + "organization/toFindOrganizationIndex";


/***************************************微信端配置***********************************************/
/**********活动模块***start*********/
config.searchActivityList = config.webChat+"activity/searchActivityList";//查询活动列表
config.joinActivity = config.webChat+"activity/joinActivity";//参加活动
config.webCompletInfo = config.webChat+"activity/completeInformation";//完善参加活动信息
config.webCompleteInfoTimeOut = config.webChat+"activity/completeInfoTimeOut";//15分钟内未完善信息 取消报名资格
config.searchActivityDetail = config.webChat+"activity/searchActivityDetail";//查询活动详情
config.webMyCommodityCollection= config.webChat+"activity/myCommodityCollection";//查询我的收藏活动
config.myActivityList= config.webChat+"activity/myActivityList";//查询我的收藏活动
config.goActivityReview= config.webChat+"activity/goActivityReview";//查询活动评价
config.loadActivityReviewList= config.webChat+"activity/loadActivityReviewList";//发送新的活动评价
config.webSendActivityReview= config.webChat+"activity/activityReview";//发送新的活动评价
config.getActivtyScheduleList= config.webChat+"activity/getActivtyScheduleList";//我的活动日程
config.getCategoryTypeList= config.webChat+"activity/getCategoryTypeList";//取得活动一级分类
config.activitySign= config.webChat+"activity/activitySign";//活动签到
config.toActivityDetail= config.webChat+"activity/toActivityDetail";//活动详情
config.toFindNearActivity= config.webChat+"activity/toFindNearActivity";//附近的活动
config.toFindThisWeekActivity= config.webChat+"activity/toFindThisWeekActivity";//本周活动
config.toSingUp= config.webChat+"activity/toSingUp?activityId=";//活动签到
config.toActivityManage= config.webChat+"userCenter/activityManage";//活动管理





/**********活动模块***end*********/


/**********福利模块***start*********/
config.getRecommendTicketInfoList=config.webChat+"recommendTicket/getRecommendTicketInfoList";
config.wealfareApply=config.webChat+"ticket/toWealfareApply?couponId=";
config.toWealfareDetail=config.webChat+"ticket/toWealfareDetail";
config.wealfareList=config.server+"couponIndex/findCoupon";	//福利列表
config.findWebCoupon=config.server+"couponIndex/findWebCoupon";	//福利列表
config.ticketTagLists=config.server+"couponIndex/getTicketClassfyTagInfo"; //票务分类



/**********福利模块***end*********/

/**********首页模块***start*********/
//微信端首页
config.toWebChatHomePage=config.webChat+"index/toIndex";
//wechat bannerImage
config.getWeChatIndex=config.webChat+"index/getWeChatBannerImage";
//找福利
config.getWebChatWealfareList=config.webChat+"index/initCoupon";
//找活动
config.getWebChatActivityList=config.webChat+"index/findActivityForActivityList";
//找活动
config.getWebChatOrganizationList=config.webChat+"index/findOrganizationList";
//首页推荐
config.toRecommendList=config.webChat+"index/findOrganizationList";

config.bannerRecommendList = config.webChat+"index/bannerRecommendList";//首页推荐
config.bannerChannelInfoList = config.webChat+"index/bannerChannelInfoList";//首页组织轮播
/**********首页模块***end*********/

/**********用户中心模块***start*********/
//登录
config.webChatUserLogin=config.webChat+"user/login";
//组织用户登陆
config.webChatOrganizationLogin=config.webChat+"user/organizationLogin";
//跳转组织用户首页
config.toAdminIndex=config.webChat+"userCenter/toAdminIndex";
config.webChatBindlogin=config.webChat+"user/webChatBindlogin";
//注册绑定
//config.webChatRegistBind=config.webChat+"user/webChatRegistBind";
//登出
config.webChatLogout=config.webChat+"user/toWebChatLogout";
//验证登录名格式
config.webChatUserValidate = config.webChat+"user/validateRegPhoneEmailUnique";
//验证手机号
config.confirmRegChatUser = config.webChat+"user/confirmRegChatUser";
//发送验证码
config.sendIdentifyCode = config.webChat+"user/getWebChatAuthCode";
//发送验证码
config.isExistMobileNumber = config.webChat+"user/isExistMobileNumber";
//验证手机号
config.validateWebChatRegPhoneUnique = config.webChat+"user/validateWebChatRegPhoneUnique";
//微信修改用户头像
config.modifyChatUserImage = config.webChat+"user/modifyChatUserImage";
//去注册
config.toWebChatRegister = config.webChat+"user/toRegist";
//绑定手机号
config.bandingOpenidMobile = config.webChat+"user/bandingOpenidMobile";
/**********用户中心模块***end*********/
//===================================我的社交 webchat	start===================================
config.getMyFollowOrgList = config.webChat+"myOrganization/getMyFollowOrgList";//我的关注列表or我的组织列表
config.toGroupList = config.webChat+"myOrganization/myUserGroupList";//我的关注or我的组织-分组列表
config.insertGroup = config.webChat+"myOrganization/insertGroup";//新增分组
config.cancelFolow = config.webChat+"myOrganization/cancelFolow";//取消关注
config.otherOranizatinHome = config.webChat+"organizationInfo/otherOranizatinHome";//组织用户详情
config.otherJoinOrFollowOrg = config.webChat+"organizationInfo/otherJoinOrFollowOrg";//申请加入和是否关注
config.getCommonGroup = config.webChat+"myOrganization/getCommonGroup";//选择分组
config.groupByGroupTypeId = config.webChat+"myOrganization/groupByGroupTypeId";//类型下所有分组
config.insertGroup = config.webChat+"myOrganization/insertGroup";//新增分组
config.delGroup = config.webChat+"myOrganization/delGroup";//删除分组
config.userGroupList = config.webChat+"myOrganization/userGroupList";//添加成员列表or按名称搜索
config.userMoveGroup = config.webChat+"myOrganization/userMoveGroup";//单个用户移动到其他分组
config.updateGroupName = config.webChat+"myOrganization/updateGroupName";//修改分组名称
config.groupDetail = config.webChat+"myOrganization/groupDetail";//分组详情
config.delUserGroupById = config.webChat+"myOrganization/delUserGroupById";//删除组下面的用户
config.insertBatchUserGroup = config.webChat+"myOrganization/insertBatchUserGroup";//添加用户至组
